-- pharmacist_bonus
-- create by panyl
-- 道具：  致命伤害

return {
    apply = function(source, target, classId, value)
        -- 药剂师强化液专用
        local level = 2;
        local dbase = PropertyM.query(classId, "dbase") or {};
        local path = dbase["prop_path"];
        if not path then
            path = "mixed";
        end

        -- 药剂师专属加强效果
        local prop = PropM.combine(source, "pharmacy", 1);
        level = PropM.apply(prop, level);

        -- 奖励
        local arr;
        local round = CombatM.getRound();
        for i=1, level do
            arr = value[i];

            if #arr < 4 then
                if arr[1] == 2 then
                    --如果是属性奖励
                    BonusM.doBonus(arr, "apply_property");
                end
            else
                --否则就是porp
                if arr[4] ~= -1 then
                    arr[4] = arr[4] + round + 1;
                end
                PropM.record(target, arr, path);
            end
        end
    end,
};
